package com.peak.distribution.vo.goods;

import com.peak.distribution.enums.Constants;
import com.peak.spring.boot.api.web.IdVo;
import com.peak.spring.boot.core.mapper.Format;
import com.peak.spring.boot.core.mapper.Format.TransferFormat;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public class DisGoodsVo extends IdVo {

	private static final long serialVersionUID = Constants.DISTRIBUTION_VERSION;

	/** 货号，系统自动生成 */
	private String skuNo;
	
	/** 商品编号 */
	private String partNo;

	/** 商品名称  */
	private String name;
	
	/** 商品规格描述  */
	private String properties;
	
	/** 包装  */
	private String pack;
	
	/** 商品描述 */
	private String description;

	/** 默认图片 */
	private String defaultImage;
	
	/** 库存总数 */
	private Integer invCount;
	
	/** 最低零售价  */
	@Format(format = TransferFormat.MONEY_CENT)
	private Integer minPrice;

	/** 最高零售价  */
	@Format(format = TransferFormat.MONEY_CENT)
	private Integer maxPrice;
	
	/** 重量：g */
	private Integer weight;
	
	/** 商品组 */
	private Integer groupId;
	
	/** 状态 */
	@Format(format = TransferFormat.PROPERTIES, key="goods.status")
	private Boolean status;
}
